﻿namespace Netbits.Common.Logging
{
	/// <summary>
	/// Interface for LogHanlder implementation.
	/// </summary>
	public interface ILogHandler
	{
		#region Public Properties

		/// <summary>
		/// Returns if this LogHandler need synchronous log-item-handling
		/// </summary>
		bool HandleSync
		{
			get;
		}

		#endregion

		#region Public Functions

		/// <summary>
		/// Called if new log-item must process
		/// </summary>
		/// <param name="Log_">The log-item to process</param>
		void ProcessLog( LogEntry Log_ );

		#endregion
	}
}
